package com.stedu.mall.goodsservice.mapper;

import com.stedu.mall.common.bean.Comment;

import java.util.List;

public interface CommentMapper {
    int insert(Comment comment);
    int delete(Integer id);
    int update(Comment comment);
    Comment selectById(Integer id);
    List<Comment> selectByParentId(Integer parentId);
    List<Comment> selectByCondition(Comment condition);
    //算出所有数量
    Integer selectByGoodsId(Integer goodsId);
    //算出总分
    float selectScoreByGoodsId(Integer goodsId);
}